# -*- coding:utf-8 -*-
# @Time: 2020/8/24 17:40
# @Author: liupengfei
# @File: urls.py

from django.urls import path
from rest_framework.routers import SimpleRouter

from .views import HouseViewSet, HouseDictViewSet, RoomViewSet

urlpatterns = [
    path('dict/', HouseDictViewSet.as_view())
]

router = SimpleRouter()
router.register('house', HouseViewSet)  # 后台AdornProcess,CRUD操作
router.register('room', RoomViewSet)  # 后台AdornProcess,CRUD操作
urlpatterns += router.urls
